package com.example.databinding.observableFiled;

import androidx.appcompat.app.AppCompatActivity;
import androidx.databinding.DataBindingUtil;

import android.os.Bundle;

import com.example.databinding.R;
import com.example.databinding.databinding.ActivityMain2Binding;
import com.example.databinding.viewModel.UserViewModel2;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        ActivityMain2Binding binding = DataBindingUtil.setContentView(this , R.layout.activity_main2);
        binding.setUserViewModel(new UserViewModel2());
    }
}